﻿@model Nop.Admin.Models.Logistics.LogisticsPlanModel
@using Nop.Web.Framework;
@using Nop.Core.Domain.Shipping;
@using Nop.Core.Domain.Logistics;
@using Telerik.Web.Mvc.UI;

@{
    //page title
    ViewBag.Title = T("Admin.Logistics.PlanEdit.Title").Text;
}

@using (Html.BeginForm())
{
    <div class="section-header">
        <div class="title">
            <img src="@Url.Content("~/subsites/Administration/Content/images/ico-configuration.png")" alt="" />
            @T("Admin.Logistics.PlanEdit.Title") <span> : @Model.Id</span>
        </div>
        <div class="options">
            <input type="submit" name="save" class="t-button" value="@T("Admin.Common.Save")" />
            <input type="submit" name="force-checkout" class="t-button" value="Force Checkout" />
        </div>
    </div>
    
    @Html.ValidationSummary(false)

    @Html.HiddenFor(m => m.Id)
    @Html.HiddenFor(m => m.CourierId);
    @Html.HiddenFor(m => m.WarehouseId);

    @Html.LabelFor(m => m.Status)
    @Html.DropDownListFor(m => m.Status, ((PlanStatus)Model.Status).ToSelectList())

    if (Model.PlanNotes.Count > 0)
    {
        @Html.Partial("_PlanNotesTable", Model.PlanNotes)
    }
}
